-
Notifications
You must be signed in to change notification settings - Fork 59
Bugfix for ErrorDialogWithToggle storing the "Don't tell me again" checkbox selection state. #809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
...ebug.tests/tests/org/eclipse/jdt/debug/tests/ui/NoLineNumberAttributesStatusHandlerTest.java
Show resolved
Hide resolved
...ebug.tests/tests/org/eclipse/jdt/debug/tests/ui/NoLineNumberAttributesStatusHandlerTest.java
Outdated
Show resolved
Hide resolved
...ebug.tests/tests/org/eclipse/jdt/debug/tests/ui/NoLineNumberAttributesStatusHandlerTest.java
Outdated
Show resolved
Hide resolved
8942682 to
935945d
Compare
SougandhS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM 👍
Thank you for revieweing.. |
iloveeclipse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding current commit message:
Fixed the java breakpoints no line attribute error dialog regarding the
"Don't tell me again" checkbox. The value wasn't stored in the
preference store due to a bug in ErrorDialogWithToggle.
Added also a testcase to easily reproduce the dialog opening and
checking its functionality
fixes ticket https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/2648
It is almost OK except:
- commit title is too long, it is not a title but the commit explanation. It should be ideally under 80 characters, so it is easy to understand in git history
fixes ticket <ticket url>is wrong,ticketbreaks automated github linking to the ticket.- The actual problem is not further analyzed. This is a fix for a regression introduced with commit 24b1795.
See example how it should be https://github.com/eclipse-jdt/.github/blob/main/CONTRIBUTING.md#commit-message-recommendations
Also note that EGit indicates you all these problems above:
- I prefer to avoid mocking if possible, as it usually harder to maintain and refactor mocked tests, so I fixed your test to avoid mocking.
- I've also added extra code that actually opens the dialog, for two reasons: 1) to make sure the test really test what it is supposed to test and 2) to get maintainers a chance to see the dialog and its state.
- I wil push all fixes now.
...ebug.tests/tests/org/eclipse/jdt/debug/tests/ui/NoLineNumberAttributesStatusHandlerTest.java
Outdated
Show resolved
Hide resolved
...ebug.tests/tests/org/eclipse/jdt/debug/tests/ui/NoLineNumberAttributesStatusHandlerTest.java
Outdated
Show resolved
Hide resolved
...ebug.tests/tests/org/eclipse/jdt/debug/tests/ui/NoLineNumberAttributesStatusHandlerTest.java
Outdated
Show resolved
Hide resolved
...ebug.tests/tests/org/eclipse/jdt/debug/tests/ui/NoLineNumberAttributesStatusHandlerTest.java
Outdated
Show resolved
Hide resolved
...ebug.tests/tests/org/eclipse/jdt/debug/tests/ui/NoLineNumberAttributesStatusHandlerTest.java
Outdated
Show resolved
Hide resolved
...ebug.tests/tests/org/eclipse/jdt/debug/tests/ui/NoLineNumberAttributesStatusHandlerTest.java
Outdated
Show resolved
Hide resolved
...ebug.tests/tests/org/eclipse/jdt/debug/tests/ui/NoLineNumberAttributesStatusHandlerTest.java
Outdated
Show resolved
Hide resolved
...ebug.tests/tests/org/eclipse/jdt/debug/tests/ui/NoLineNumberAttributesStatusHandlerTest.java
Outdated
Show resolved
Hide resolved
...ebug.tests/tests/org/eclipse/jdt/debug/tests/ui/NoLineNumberAttributesStatusHandlerTest.java
Outdated
Show resolved
Hide resolved
935945d to
6035422
Compare
|
Additional request: since the change on |
|
The regression is very old, the change affects two different debug dialogs, so I would prefer we would fix it in 4.39 M1. |
The change in commit 24b1795 reverted the logic of the "don't tell me again" toggle button and only updated JavaHotCodeReplaceListener (which opens HotCodeReplaceErrorDialog). However NoLineNumberAttributesStatusHandler also used ErrorDialogWithToggle but it wasn't updated. This commit fixes "No line attributes error" dialog on breakpoints opened by NoLineNumberAttributesStatusHandler regarding the "Don't tell me again" checkbox behavior. After commit above the value wasn't stored in the preference store. Added regression test to easily reproduce the dialog opening and checking its functionality. Fixes https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/2648
5b538f0 to
1198069
Compare
|
squashed two commits.. because I wanted to see if the tests were successfull.. locally I had test problems with the AutomatedSuite. |

Fixed the java breakpoints no line attribute error dialog regarding the "Don't tell me again" checkbox. The value wasn't stored in the preference store due to a bug in ErrorDialogWithToggle.
Added also a testcase to easily reproduce the dialog opening and checking its functionality
fixes ticket #811